const routes = [
  {
    path: '/main',
    component: () => import('layouts/MainLayout.vue'),
    name: 'main',
    children: [
      {
        path: '/user',
        component: () => import('pages/user/index.vue'),
        children: [],
        label: '用户管理',
        name: 'user',
        icon: ''
      },
      {
        path: '/province',
        component: () => import('pages/common/province.vue'),
        children: [],
        label: '省市区管理',
        name: 'province',
        icon: ''
      },
      {
        path: '/role',
        component: () => import('pages/role/index.vue'),
        children: [],
        label: '角色管理',
        name: 'role',
        icon: ''
      },
      {
        path: '/menu',
        component: () => import('pages/menu/index.vue'),
        children: [],
        label: '菜单管理',
        name: 'menu',
        icon: ''
      },
      {
        path: '/product',
        component: () => import('pages/product/index.vue'),
        label: '商品管理',
        children: [],
        name: 'menu',
        icon: ''
      },
      {
        path: '/class',
        component: () => import('pages/product/class.vue'),
        label: '分类管理',
        children: [],
        name: 'class',
        icon: ''
      },
      {
        path: '/lotteryClass',
        component: () => import('pages/lottery/class.vue'),
        label: '分类管理',
        children: [],
        name: 'class-lottery',
        icon: ''
      },
      {
        path: '/lottery',
        component: () => import('pages/lottery/index.vue'),
        label: '奖品管理',
        children: [],
        name: 'lottery',
        icon: ''
      },
      {
        path: '/problem',
        component: () => import('pages/problem/index.vue'),
        label: '常见问题',
        children: [],
        name: 'problem',
        icon: ''
      },
      {
        path: '/manager',
        component: () => import('pages/admin/index.vue'),
        label: '管理员',
        children: [],
        name: 'manager',
        icon: ''
      },
      {
        path: '/advert',
        component: () => import('pages/advert/index.vue'),
        label: '广告',
        children: [],
        name: 'advert',
        icon: ''
      },
      {
        path: '/productJoinRecord',
        component: () => import('pages/productJoinRecord/index.vue'),
        label: '商品参与记录',
        children: [],
        name: 'productJoinRecord',
        icon: ''
      },

      {path: '/home',
        component: () => import('pages/Dashboard2.vue'),
        children: []
      },
      {path: '/Profile',
        component: () => import('pages/UserProfile.vue'),
        children: []
      },
      {path: '/Map',
        component: () => import('pages/Map.vue'),
        children: []
      },
      {path: '/MapMarker',
        component: () => import('pages/MapMarker.vue'),
        children: []
      },
      {path: '/StreetView',
        component: () => import('pages/StreetView.vue'),
        children: []
      },
      {path: '/TreeTable',
        component: () => import('pages/TreeTable.vue'),
        children: []
      },
      {path: '/Charts',
        component: () => import('pages/Charts.vue'),
        children: []
      },
      {path: '/Cards',
        component: () => import('pages/Cards.vue'),
        children: []
      },
      {path: '/Tables',
        component: () => import('pages/Tables.vue'),
        children: []
      },
      {path: '/Contact',
        component: () => import('pages/Contact.vue'),
        children: []
      },
      {path: '/Checkout',
        component: () => import('pages/Checkout.vue'),
        children: []
      },
      {path: '/Calendar',
        component: () => import('pages/Calendar.vue'),
        children: []
      },
      {path: '/Pagination',
        component: () => import('pages/Pagination.vue'),
        children: []
      },
      {path: '/Taskboard',
        component: () => import('pages/TaskBoard.vue'),
        children: []
      },
      {path: '/Ecommerce',
        component: () => import('pages/ProductCatalogues.vue'),
        children: []
      }
    ]
  }
  // {
  //   path: '/Lock',
  //   component: () => import('pages/LockScreen.vue'),
  //   children: []
  // },
  // {
  //   path: '/Maintenance',
  //   component: () => import('pages/Maintenance.vue'),
  //   children: []
  // },
  // {
  //   path: '/Pricing',
  //   component: () => import('pages/Pricing.vue'),
  //   children: []
  // },
  // {
  //   path: '/Mail',
  //   component: () => import('layouts/Mail.vue'),
  //   children: []
  // },
  // {
  //   path: '/Lock-2',
  //   component: () => import('pages/LockScreen-2.vue'),
  //   children: []
  // }
]

// Always leave this as last one
if (process.env.MODE !== 'ssr') {
  routes.push({
    path: '*',
    component: () => import('pages/Error404.vue'),
    children: []
  })
}

export default routes
